<!-- 
    Document   : googleCustom
    Created on : Dec 25, 2008, 3:37:09 AM
    Author     : Ravi Sharma
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title></title>
        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="http://www.google.com/jsapi" type="text/javascript"></script>
        
        <script src="scripts/ajaxgold.js" type="text/javascript"></script>
        <script type="text/javascript">
            
            
            google.load('search', '1.0');
            
            function OnLoad() {
                
                // Create a search control
                var searchControl = new google.search.SearchControl();
                
                // Add in a full set of searchers
                var localSearch = new google.search.LocalSearch();
                // create a searcher options object
                // set up for open expansion mode
                // load a searcher with these options
                
                
                var options = new google.search.SearcherOptions();
                
                options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);
                options.setRoot(document.getElementById("targetDiv"));
                //searchControl.addSearcher(localSearch);
                searchControl.addSearcher(new google.search.WebSearch(),options);
                //searchControl.addSearcher(new google.search.VideoSearch(),options);
                //searchControl.addSearcher(new google.search.BlogSearch(),options);
                //searchControl.addSearcher(new google.search.NewsSearch(),options);
                //searchControl.addSearcher(new google.search.ImageSearch(),options);
                //searchControl.addSearcher(new google.search.BookSearch(),options);
                //searchControl.addSearcher(new google.search.PatentSearch(),options);
                
                // create a drawOptions object
                var drawOptions = new google.search.DrawOptions();
                
                // tell the searcher to draw itself in linear mode
                drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
                // Set the Local Search center point
                //localSearch.setCenterPoint("New York, NY");
                
                // tell the searcher to draw itself and tell it where to attach
                searchControl.draw(document.getElementById("searchcontrol"));           
                
            }
            google.setOnLoadCallback(OnLoad, false);
        </script>
        <script type="text/javascript">
            function funct(returnedText)
            {
                
                document.getElementById("targetDiv2").innerHTML=returnedText;
                
            }</script>
    </head>
    <body>
       
        <div id="searchcontrol"></div>
        <hr>
        <table><tr><td onclick="getDataReturnText('ajaxFF/a.html', funct)">Load A.html</td></tr></table>
        <hr>
        <div id="targetDiv2"></div>
        <div id="targetDiv"></div>
    </body>
</html>
